<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>016-CSS 属性选择器</title>
		<style>
			/* 属性选择器 */
			[title] {
				color: red;
			}

			/* 属性+值选择器 */
			[title='title3'] {
				color: blue;
			}

			/* 属性值包含选择器 */
			div[lang|='en'] {
				color: green;
			}
		</style>
	</head>
	<body>
		<h1 title="title1">我是H1</h1>
		<h2 title="title2">我是H2</h2>

		<hr />

		<div title="title3">我是div</div>

		<hr />

		<div lang="enCH">我是div</div>
		<div lang="en">我是div</div>
		<div lang="en-US">我是div</div>
	</body>
</html>
